#计数循环(N次)
for i in range(5):
    print(i)

for i in range(5):
    print("Hello:", i)

#计数循环(特定次)
for i in range(1, 6):
    print(i)

for i in range(1, 6, 2):
    print("Hello:", i)

#字符串遍历循环
for c in "Python123":
    print(c, end = ",")

#列表遍历循环
for item in [123, "PY", 456]:
    print(item, end = ",")

#文件遍历循环
for line in open('E:\\sibyltui\\basic_experiment\\6\\teaching\\file.txt', encoding='UTF-8'):
    print(line) 